From 929990b94033a5e32fbe24dce79dd6cdfae1d565 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Wed, 11 Jul 2007 10:56:52 +0100 Subject: [PATCH] [VTPM] Fixed typo in VTPM manager. Replaces an instance of pthread_mutex_lock() that should be pthreaad_mutex_unlock(). With thanks to our OpenTC partners at the Technical University of Sofia, whose static analysis found this bug. Signed-off-by: Derek G. Murray --- tools/vtpm_manager/util/hashtable_itr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/vtpm_manager/util/hashtable_itr.c b/tools/vtpm_manager/util/hashtable_itr.c index 2a27489733..5586f061f5 100644 --- a/tools/vtpm_manager/util/hashtable_itr.c +++ b/tools/vtpm_manager/util/hashtable_itr.c @@ -225,7 +225,7 @@ hashtable_iterator_search(struct hashtable_itr *itr, egress: #ifdef HASHTABLE_THREADED - pthread_mutex_lock(&h->mutex); + pthread_mutex_unlock(&h->mutex); #endif return ret; } -- 2.30.2